
import 'package:flutter/material.dart';

Color hexToColor(String hexString) {
  return Color(int.parse(hexString, radix: 16)).withAlpha(255);
}

class XJColors {
  static const Color navigationColor = Color(0xff2266fe);
  static const Color contactItemBorderColor = Color(0xffDBDBDB);
  static const Color contactItemShowNameColor = Color(0xff111111);
  static const Color contactItemArrowRightColor = Color(0xffBBBBBB);

  static const weakDividerColor = Color(0xFFE5E6E9);
  static const textMainBlack = Color(0xFF000000);
  static const textSubBlack = Color(0xFFB7B7B7);
  static const weakTextColor = Color(0xFF999999);

  static const primarycolor = Color(0xff2266fe);
  static const infoColor = Color(0xFF01439c);
  static const warnColor = Color(0xFFfd9c1a);
  static const dangerColor = Color(0xFFf44334);
  static const normalColor = Color(0xFF999999);
  static const successColor = Color(0xFF54BA9C);

  static const textPublishTitleBackColor = Color(0xFFfef0f1);
  static const textPublishTitleColor = Color(0xFFbf9191);
  static const textPublishTitleImgColor = Color(0xFF54BA9C);
  static const textPublishTitleEndColor = Color(0xFFFFB557);
  static const textPublishTipsColor = Color(0xFFd2a1a1);

  static Map<int, Color> primaryColor = {
    50:const Color.fromRGBO(33, 102, 254, .1),
    100:const Color.fromRGBO(33, 102, 254, .2),
    200:const Color.fromRGBO(33, 102, 254, .3),
    300:const Color.fromRGBO(33, 102, 254, .4),
    400:const Color.fromRGBO(33, 102, 254, .5),
    500:const Color.fromRGBO(33, 102, 254, .6),
    600:const Color.fromRGBO(33, 102, 254, .7),
    700:const Color.fromRGBO(33, 102, 254, .8),
    800:const Color.fromRGBO(33, 102, 254, .9),
    900:const Color.fromRGBO(33, 102, 254, 1),
  };

}